package com.example.demo6.service.impl;

import com.example.demo6.mysqldao.MysqlStudentMapper;
import com.example.demo6.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("studentService")
public class StudentServiceImp implements StudentService {

    @Autowired
    private MysqlStudentMapper mysqlStudentDao;

    @Override
    public List<Map<String, Object>> getAllStudentsFromMysql() {
        return this.mysqlStudentDao.getAllStudents();
    }

}
